<div class="donvitinhs view">
<h2 align="center"><?php  __('Đơn Vị Tính');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mã Đơn Vị Tính'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $donvitinh['Donvitinh']['madonvitinh']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tên Đơn Vị Tính'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $donvitinh['Donvitinh']['tendonvitinh']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="related">
	<h3><?php __('Related Mathangs');?></h3>
	<?php if (!empty($donvitinh['Mathang'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Tenmathang'); ?></th>
		<th><?php __('Mamathang'); ?></th>
		<th><?php __('Donvitinh Id'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($donvitinh['Mathang'] as $mathang):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $mathang['id'];?></td>
			<td><?php echo $mathang['tenmathang'];?></td>
			<td><?php echo $mathang['mamathang'];?></td>
			<td><?php echo $mathang['donvitinh_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'mathangs', 'action' => 'view', $mathang['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'mathangs', 'action' => 'edit', $mathang['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'mathangs', 'action' => 'delete', $mathang['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $mathang['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>